# Makefile for GNU GUILE, a stand-alone Scheme interpreter.
#
# Copyright (C) 1987, 1991 Free Software Foundation, Inc.
# 
# This file is part of GNU GUILE.
# 
# GNU GUILE is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# 
# GNU GUILE is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with GNU GUILE; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@

CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

DEFS = @DEFS@
LIBS = @LIBS@

CFLAGS = -g -I. @xtra_cflags@
LDFLAGS = -g
extra_objs =
extra_dependencies=@xtra_dependencies@
plugin_libs=@plugin_libs@ @xtra_libs@
prefix = @prefix@
exec_prefix = $(prefix)
# Where to install the executable.
bindir = $(exec_prefix)/bin

#### End of system configuration section. ####

objs = guile.o 
c_files = guile.c

distfiles = COPYING ChangeLog README Makefile.in \
  configure configure.in $(c_files) PLUGIN


all_objs= $(objs) $(extra_objs)
manifest= $(distfiles)

.c.o:
	$(CC)   -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -I$(srcdir) -I$(srcdir)/../libguile -I../libguile $<



all:	guile

SUBDIR=.
manifest:
	for file in $(manifest) ; \
	  do echo $(SUBDIR)/$$file ; \
	done

guile:	$(all_objs) $(extra_dependencies)
	$(CC) $(CFLAGS) -o guile $(all_objs) $(plugin_libs) -lm
	

install: all
	test -d $(prefix) || mkdir $(prefix)
	test -d $(bindir) || mkdir $(bindir)
	$(INSTALL) guile $(bindir)/guile

uninstall:
	-rm -f $(bindir)/guile

TAGS:
	etags $(c_sources)

info:

clean:
	-rm -f guile
	-rm -f $(all_objs)

distclean: clean
	-rm -f config.cache
	-rm -f config.log
	-rm -f config.status
	-rm -f initplugs.c

realclean: distclean


###

guile.o: guile.c initplugs.c
